package club.banyuan;

public class OrderCake extends Cake{
    private double weightInKG;

    public OrderCake(double weightInKG) {
        this.weightInKG = weightInKG;
    }

    @Override
    public double getPrice() {
        return super.getPrice() * weightInKG;
    }

    public double getWeightInKG() {
        return weightInKG;
    }

    public void setWeightInKG(double weightInKG) {
        this.weightInKG = weightInKG;
    }
}
